// 1. 导入 import
// import { name, age, foo } from "./foo.js"
// console.log(name, age, foo);

// 2. 导入默认导出的成员
// import foo from "./foo.js"

// 3. 导入全部成员
// import * as foo from "./foo.js"

// 4. 导入时起别名
import { name as newName, age as newAge, foo as newFooFn } from "./foo.js"
const name = "main name"

console.log(name, newName, newAge, newFooFn);
